package alp.starcode.nudtportal.user.service;

import alp.starcode.common.util.BeanUtils;
import alp.starcode.nudtportal.framework.base.BaseService;
import alp.starcode.nudtportal.framework.constant.ProjectConst;
import alp.starcode.nudtportal.framework.login.user.User;
import alp.starcode.nudtportal.framework.model.dto.RequestExceptionDTO;
import alp.starcode.nudtportal.framework.model.dto.UserBehaviorDTO;
import alp.starcode.nudtportal.framework.model.dto.UserLoginLogIDTO;
import alp.starcode.nudtportal.framework.mybatis.dao.impl.*;
import alp.starcode.nudtportal.framework.mybatis.entity.*;
import alp.starcode.nudtportal.framework.mybatis.vo.LogModuleAccessVO;
import alp.starcode.nudtportal.framework.util.IPUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.extern.slf4j.Slf4j;
import org.elasticsearch.ElasticsearchException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.util.UUID;


/**
 * 检查服务连通 处理
 *
 */
@Slf4j
@Service
public class ProbeService extends BaseService {


    public Boolean survival() {
        return true;
    }

    public Boolean ready(HttpServletResponse response) {
        return true;
    }
}
